Date ParserΒΆ
Convert any date in a specified format
import datetime
import dateutil.parser
input_date = '10th May 1996'
parsed_date = dateutil.parser.parse(input_date)
final_date = datetime.datetime.strftime(parsed_date, '%d-%m-%Y')
print(final_date)
10-05-1996